Skip to content

Latest commit

 

History

History
99 lines (54 loc) · 3.45 KB

ApplicationTokensApi.md

File metadata and controls

99 lines (54 loc) · 3.45 KB

\ApplicationTokensApi

All URIs are relative to https://cdn.emnify.net

Method HTTP request Description
application_token_by_id_patch patch /api/v1/application_token/{app_token_id} Update Application Token
application_token_get get /api/v1/application_token List Application Tokens
application_token_post post /api/v1/application_token Create Application Token

application_token_by_id_patch

application_token_by_id_patch(app_token_id, application_token) Update Application Token

The description of the token may be updated and the Application Token can be revoked by updating the status. The possible statuses of tokens are * \"id\": 0 - Activated * \"id\": 1 - Revoked

Parameters

Name Type Description Required Notes
app_token_id f32 application token ID [required]
application_token ApplicationToken [required]

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

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

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

application_token_get

Veccrate::models::ListofApplicationTokensresponse application_token_get() List Application Tokens

Returns the list of application tokens for the organisation of the requesting user.

Parameters

This endpoint does not need any parameter.

Return type

Veccrate::models::ListofApplicationTokensresponse

Authorization

bearerAuth

HTTP request headers

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

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

application_token_post

crate::models::CreateApplicationTokenresponse application_token_post(create_application_tokenrequest) Create Application Token

Creates a new application token. ID must not be specified, as it is auto-generated and returned in case of a successful JSON response. You can provide following fields with this request: * description (String, optional) * expiry_date with optional time + time zone (String, optional) * ip - IP Address in CIDR notation (String, optional)

Parameters

Name Type Description Required Notes
create_application_tokenrequest CreateApplicationTokenrequest [required]

Return type

crate::models::CreateApplicationTokenresponse

Authorization

bearerAuth

HTTP request headers

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

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