GetActions
Get a list of actions
Description
- Obtains a list of actions associated with the specified status and datastore actions.
- What you get is a list of actions available to the logged-in user.
Method
GET
Request URL Format
/api/v0/datastores/:datastore-id/actions
URL Params
datastore-id : Datastore ID
Query Params
status_id : Status ID
Request Sample
GET https://api.xxx.com/api/v0/datastores/59bf42550e2479186a6c6c70/actions?status_id=6121fccd170986e3a7cfcb90
Response Sample
If status_id is specified
If status ID (status_id) is specified, both the action associated with the status and the action associated with the data store will be returned.
[
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb94",
"status_id": "6121fccd170986e3a7cfcb90",
"is_status_action": true, // true, if the action is associated with status
"display_id": "MoveToStatus1",
"operation": "update",
"set_status": "6121fccd170986e3a7cfcb91", // Status ID of the transition destination
"name": "ステータス1へ戻る"
},
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb96",
"is_status_action": false,
"display_id": "UpdateItem",
"operation": "update",
"set_status": "",
"name": "内容を更新する"
},
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb97",
"is_status_action": false,
"display_id": "CopyItem",
"operation": "copy",
"set_status": "",
"name": "コピーして新規登録する"
},
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb98",
"is_status_action": false,
"display_id": "CreateItem",
"operation": "new",
"set_status": "6121fccd170986e3a7cfcb91",
"name": "新しいデータを登録する"
},
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb9a",
"is_status_action": false,
"display_id": "DeleteItem",
"operation": "delete",
"set_status": "",
"name": "このデータを削除する"
}
]
If status_id is not specified
If status_id is not specified, only actions associated with the datastore will be returned.
[
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb96",
"is_status_action": false,
"display_id": "UpdateItem",
"operation": "update",
"set_status": "",
"name": "内容を更新する"
},
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb97",
"is_status_action": false,
"display_id": "CopyItem",
"operation": "copy",
"set_status": "",
"name": "コピーして新規登録する"
},
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb98",
"is_status_action": false,
"display_id": "CreateItem",
"operation": "new",
"set_status": "6121fccd170986e3a7cfcb91",
"name": "新しいデータを登録する"
},
{
"workspace_id": "611be3b251eca76ebec45de8",
"project_id": "611be3b251eca76ebec45deb",
"datastore_id": "6121fccd27ef72f577ad28bc",
"action_id": "6121fcce170986e3a7cfcb9a",
"is_status_action": false,
"display_id": "DeleteItem",
"operation": "delete",
"set_status": "",
"name": "このデータを削除する"
}
]