GET
https://api.blockv.io/v1/user/actions/:template-nameOverview
Returns all action that can be performed for a certain template. The response includes the input and output parameters for each action.
Get Actions Request
HTTP Headers
application/x-www-form-urlencoded
{app_id}
Body intentionally left blank.
Get Actions Response
Return & Error Codes
Error | Type | Description |
---|
200 | http | Everything is OK |
403 | http | Not Authorized |
payload Object
Name | Type | Description |
---|
[
action
] | array | A list of actions. |
action Object
Name | Type | Description |
---|
name | string | The name of the action. |
params | object | Input and Output parameter of the action. |
{
"payload": [
{
"name": "publisher_fqdn::Template_Name::v1::Action::Transfer",
"params": {
"input": [
"this.id",
"new.owner.email|new.owner.phone_number|new.owner.id"
],
"output": [
"v1::Error"
]
}
},
{
"name": "publisher_fqdn::Template_Name::v1::Action::Clone",
"params": {
"input": [
"this.id",
"new.owner.email|new.owner.phone_number|new.owner.id"
],
"output": [
"v1::Error"
]
}
}
}