Skip to content

Latest commit

 

History

History
104 lines (59 loc) · 2.85 KB

DocumentsApi.md

File metadata and controls

104 lines (59 loc) · 2.85 KB

\DocumentsApi

All URIs are relative to https://api.phrase.com/v2

Method HTTP request Description
DocumentDelete Delete /projects/{project_id}/documents/{id} Delete document
DocumentsList Get /projects/{project_id}/documents List documents

DocumentDelete

DocumentDelete(ctx, projectId, id, optional)

Delete document

Delete an existing document.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
id string ID
optional *DocumentDeleteOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a DocumentDeleteOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

(empty response body)

Authorization

Basic, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

DocumentsList

[]Document DocumentsList(ctx, projectId, optional)

List documents

List all documents the current user has access to.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
optional *DocumentsListOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a DocumentsListOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) | page | optional.Int32| Page number | perPage | optional.Int32| Limit on the number of objects to be returned, between 1 and 100. 25 by default |

Return type

[]Document

Authorization

Basic, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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