コンテンツにスキップ
Taylorz CRM Developers
Esc
↑↓移動↵開く⌘Jプレビュー

Read a request's decisions

GET/api/v1/approvals/{id}/decisions
認証
AuthorizationOAuth2 アクセストークン · header必須

Authorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.

スコープ:api.access
パスパラメーター
idstring必須

An approval request's id

最小長 1 · 最大長 255
レスポンス
200

Every decision taken, by stage

ApprovalDecision の配列
commentstring必須
createdAtstring<date-time>必須
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ に一致
decidedBystring必須
最小長 1 · 最大長 255
decisionstring必須
許可される値:approvereject
idstring必須
最小長 1 · 最大長 255
organizationIdstring必須
最小長 1 · 最大長 255
requestIdstring必須
最小長 1 · 最大長 255
stageinteger必須
最小 -9007199254740991 · 最大 9007199254740991
400

The request body, query or parameters were refused

codestring必須
許可される値:invalid_inputnot_foundconflictforbidden
detailany
errorstring必須
reasonstring
401

The access token is missing, invalid or revoked

errorstring必須
403

The tenant's module is off, or the token's scope or the member's role does not permit the action

codestring必須
許可される値:invalid_inputnot_foundconflictforbidden
detailany
errorstring必須
reasonstring
404

No such record, or none the caller may read

codestring必須
許可される値:invalid_inputnot_foundconflictforbidden
detailany
errorstring必須
reasonstring
413

The request exceeds the route's body limit

errorstring必須
500

An unexpected failure

errorstring必須
リクエスト
curl -X GET '/api/v1/api/v1/approvals/string/decisions' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'
レスポンス
[
  {
    "comment": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "decidedBy": "string",
    "decision": "approve",
    "id": "string",
    "organizationId": "string",
    "requestId": "string",
    "stage": -9007199254740991
  }
]

このページは役に立ちましたか?