Skip to content

Latest commit

 

History

History
160 lines (87 loc) · 4.72 KB

TranslationsApi.md

File metadata and controls

160 lines (87 loc) · 4.72 KB

\TranslationsApi

All URIs are relative to https://cad.onshape.com

Method HTTP request Description
create_translation Post /api/translations/d/{did}/w/{wid}
delete_translation Delete /api/translations/{tid}
get_document_translations Get /api/translations/d/{did}
get_translation Get /api/translations/{tid}
get_translator_formats5 Get /api/translations/translationformats

create_translation

create_translation(did, wid, content_disposition, entity, media_type, message_body_workers, parent, providers, body_parts)

Parameters

Name Type Description Required Notes
did String [required]
wid String [required]
content_disposition Option<crate::models::ContentDisposition>
entity Option<serde_json::Value>
media_type Option<crate::models::BodyPartMediaType>
message_body_workers Option<serde_json::Value>
parent Option<crate::models::MultiPart>
providers Option<serde_json::Value>
body_parts Option<Veccrate::models::BodyPart>

Return type

(empty response body)

Authorization

OAuth2

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_translation

delete_translation(tid)

Parameters

Name Type Description Required Notes
tid String [required]

Return type

(empty response body)

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_document_translations

get_document_translations(did, offset, limit)

Parameters

Name Type Description Required Notes
did String [required]
offset Option<i32> [default to 0]
limit Option<i32> [default to 20]

Return type

(empty response body)

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_translation

get_translation(tid)

Parameters

Name Type Description Required Notes
tid String [required]

Return type

(empty response body)

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_translator_formats5

get_translator_formats5()

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]