All URIs are relative to https://api.sendpost.io/api/v1
Method | HTTP request | Description |
---|---|---|
SubAccountRouterCount | Get /account/subaccount/count | |
SubAccountRouterCreate | Post /account/subaccount/ | |
SubAccountRouterDelete | Delete /account/subaccount/{subAccountId} | |
SubAccountRouterGet | Get /account/subaccount/{subAccountId} | |
SubAccountRouterGetAll | Get /account/subaccount/ | |
SubAccountRouterUpdate | Put /account/subaccount/{subAccountId} |
ModelsCountStat SubAccountRouterCount(ctx, xAccountApiKey)
Count Total Subaccounts
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
xAccountApiKey | string | Account API Key |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelsSubAccount SubAccountRouterCreate(ctx, xAccountApiKey, body)
Create SubAccount
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
xAccountApiKey | string | Account API Key | |
body | ModelsESubAccount | The SubAccount content |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelsDeleteResponse SubAccountRouterDelete(ctx, xAccountApiKey, subAccountId)
Delete SubAccount
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
xAccountApiKey | string | Account API Key | |
subAccountId | int64 | The SubAccountId you want to delete |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelsSubAccount SubAccountRouterGet(ctx, xAccountApiKey, subAccountId)
Find SubAccount by SubAccountId
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
xAccountApiKey | string | Account API Key | |
subAccountId | int64 | the SubAccountId you want to get |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ModelsSubAccount SubAccountRouterGetAll(ctx, xAccountApiKey, optional)
Get All SubAccounts
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
xAccountApiKey | string | Account API Key | |
optional | *AccountsubaccountApiSubAccountRouterGetAllOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a AccountsubaccountApiSubAccountRouterGetAllOpts struct
Name | Type | Description | Notes |
---|
offset | optional.Int64| offset | limit | optional.Int64| limit | search | optional.String| search term |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelsSubAccount SubAccountRouterUpdate(ctx, xAccountApiKey, subAccountId, body)
Update SubAccount
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
xAccountApiKey | string | Account API Key | |
subAccountId | int64 | The SubAccountId you want to update | |
body | ModelsESubAccount | The body |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]