Skip to content

Files

Latest commit

 

History

History
230 lines (131 loc) · 6.42 KB

ServicesAssetsApi.md

File metadata and controls

230 lines (131 loc) · 6.42 KB

ServicesAssetsApi

All URIs are relative to https://serverless.twilio.com

Method HTTP request Description
CreateAsset Post /v1/Services/{ServiceSid}/Assets Create a new Asset resource.
DeleteAsset Delete /v1/Services/{ServiceSid}/Assets/{Sid} Delete an Asset resource.
FetchAsset Get /v1/Services/{ServiceSid}/Assets/{Sid} Retrieve a specific Asset resource.
ListAsset Get /v1/Services/{ServiceSid}/Assets Retrieve a list of all Assets.
UpdateAsset Post /v1/Services/{ServiceSid}/Assets/{Sid} Update a specific Asset resource.

CreateAsset

ServerlessV1Asset CreateAsset(ctx, ServiceSidoptional)

Create a new Asset resource.

Create a new Asset resource.

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ServiceSid string The SID of the Service to create the Asset resource under.

Other Parameters

Other parameters are passed through a pointer to a CreateAssetParams struct

Name Type Description
FriendlyName string A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters.

Return type

ServerlessV1Asset

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

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

DeleteAsset

DeleteAsset(ctx, ServiceSidSid)

Delete an Asset resource.

Delete an Asset resource.

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ServiceSid string The SID of the Service to delete the Asset resource from.
Sid string The SID that identifies the Asset resource to delete.

Other Parameters

Other parameters are passed through a pointer to a DeleteAssetParams struct

Name Type Description

Return type

(empty response body)

Authorization

accountSid_authToken

HTTP request headers

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

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

FetchAsset

ServerlessV1Asset FetchAsset(ctx, ServiceSidSid)

Retrieve a specific Asset resource.

Retrieve a specific Asset resource.

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ServiceSid string The SID of the Service to fetch the Asset resource from.
Sid string The SID that identifies the Asset resource to fetch.

Other Parameters

Other parameters are passed through a pointer to a FetchAssetParams struct

Name Type Description

Return type

ServerlessV1Asset

Authorization

accountSid_authToken

HTTP request headers

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

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

ListAsset

[]ServerlessV1Asset ListAsset(ctx, ServiceSidoptional)

Retrieve a list of all Assets.

Retrieve a list of all Assets.

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ServiceSid string The SID of the Service to read the Asset resources from.

Other Parameters

Other parameters are passed through a pointer to a ListAssetParams struct

Name Type Description
PageSize int How many resources to return in each list page. The default is 50, and the maximum is 1000.
Limit int Max number of records to return.

Return type

[]ServerlessV1Asset

Authorization

accountSid_authToken

HTTP request headers

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

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

UpdateAsset

ServerlessV1Asset UpdateAsset(ctx, ServiceSidSidoptional)

Update a specific Asset resource.

Update a specific Asset resource.

Path Parameters

Name Type Description
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
ServiceSid string The SID of the Service to update the Asset resource from.
Sid string The SID that identifies the Asset resource to update.

Other Parameters

Other parameters are passed through a pointer to a UpdateAssetParams struct

Name Type Description
FriendlyName string A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters.

Return type

ServerlessV1Asset

Authorization

accountSid_authToken

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

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