Document Cases
Schema
An collection of documents, reusable across multiple requests.
Type Object
| Name | Type | Description |
|---|---|---|
expires_at |
String(format:date-time) | An ISO8601 formatted timestamp |
id |
String(format:uuid) | Desc. id |
inserted_at |
String(format:date-time) | An ISO8601 formatted timestamp |
last_reviewed_at |
String(format:date-time) | An ISO8601 formatted timestamp |
name |
String(1..64) | Display name for the Document Case. |
notes |
String(0..8192) | Desc. notes |
review_description |
String | |
review_status |
Enum(NONE, PENDING, APPROVED, REJECTED):String |
|
updated_at |
String(format:date-time) | An ISO8601 formatted timestamp |
Desc. id
A Universally unique identifier, which identifies the resource
Desc. notes
Any notes about the request document case.
Example
{
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
}
API
Create Document Case
POST /api/v1/document_cases HTTP/1.1
Request application/json
POST /api/v1/document_cases HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 98
{
"data": {
"name": "string",
"notes": "string"
},
"type": "request_document_case"
}
Response 201
application/json
HTTP/1.1 201
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Update Document Case
PATCH /api/v1/document_cases/{id} HTTP/1.1
The same operation is also available as:
PUT /api/v1/document_cases/{id} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| id | String(format:uuid)! | Path Desc. id |
Path Desc. id
Document Case ID A Universally unique identifier, which identifies the resource
Request application/json
PATCH /api/v1/document_cases/{id} HTTP/1.1
Accept: application/json
Content-Type: application/json
Content-Length: 98
{
"data": {
"name": "string",
"notes": "string"
},
"type": "request_document_case"
}
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Delete Document Case
DELETE /api/v1/document_cases/{id} HTTP/1.1
Delete a case and its uploaded files. Cases attached to requests must first be detached.
Path Parameters
| Name | Type | Description |
|---|---|---|
| id | String(format:uuid)! | Path Desc. id |
Path Desc. id
Document Case ID A Universally unique identifier, which identifies the resource
Request
DELETE /api/v1/document_cases/{id} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
List Document Cases
GET /api/v1/document_cases HTTP/1.1
Query Parameters
| Name | Type | Description |
|---|---|---|
| first | Integer | Query Desc. first |
| last | Integer | Query Desc. last |
| after | String | Query Desc. after |
| before | String | Query Desc. before |
Query Desc. first
The number of items to return starting from the 'after' cursor
Query Desc. last
The number of items to return behind the 'before' cursor
Query Desc. after
The cursor representing the starting point of a 'first' based paging
Query Desc. before
The cursor representing the starting point of a 'last' based paging
Request
GET /api/v1/document_cases HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 976
{
"count": 1,
"page_info": {
"end_cursor": "YXJyYXljb25uZWN0aW9uOjQ=",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "YXJyYXljb25uZWN0aW9uOjA="
},
"results": [
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
]
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Retrieve Document Case
GET /api/v1/document_cases/{id} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| id | String(format:uuid)! | Path Desc. id |
Path Desc. id
Document Case ID A Universally unique identifier, which identifies the resource
Request
GET /api/v1/document_cases/{id} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Attach Cart Request Document Case
PUT /api/v1/carts/{cart_id}/requests/{request_id}/document_case/{id} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| cart_id | String(format:ulid)! | Path Desc. cart_id |
| request_id | String(format:ulid)! | Path Desc. request_id |
| id | String(format:uuid)! | Path Desc. id |
Path Desc. cart_id
Cart ID Another format for UUID, used primarily for tasks, requests and messages.
Path Desc. request_id
Request ID Another format for UUID, used primarily for tasks, requests and messages.
Path Desc. id
Document Case ID A Universally unique identifier, which identifies the resource
Request
PUT /api/v1/carts/{cart_id}/requests/{request_id}/document_case/{id} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 412
application/json
HTTP/1.1 412
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Retrieve Cart Request Document Case
GET /api/v1/carts/{cart_id}/requests/{request_id}/document_case HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| cart_id | String(format:ulid)! | Path Desc. cart_id |
| request_id | String(format:ulid)! | Path Desc. request_id |
Path Desc. cart_id
Cart ID Another format for UUID, used primarily for tasks, requests and messages.
Path Desc. request_id
Request ID Another format for UUID, used primarily for tasks, requests and messages.
Request
GET /api/v1/carts/{cart_id}/requests/{request_id}/document_case HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 412
application/json
HTTP/1.1 412
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Detach Cart Request Document Case
DELETE /api/v1/carts/{cart_id}/requests/{request_id}/document_case HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| cart_id | String(format:ulid)! | Path Desc. cart_id |
| request_id | String(format:ulid)! | Path Desc. request_id |
Path Desc. cart_id
Cart ID Another format for UUID, used primarily for tasks, requests and messages.
Path Desc. request_id
Request ID Another format for UUID, used primarily for tasks, requests and messages.
Request
DELETE /api/v1/carts/{cart_id}/requests/{request_id}/document_case HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 412
application/json
HTTP/1.1 412
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Attach Request Document Case
PUT /api/v1/requests/{request_id}/document_case/{id} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| request_id | String(format:ulid)! | Path Desc. request_id |
| id | String(format:uuid)! | Path Desc. id |
Path Desc. request_id
Request ID Another format for UUID, used primarily for tasks, requests and messages.
Path Desc. id
Document Case ID A Universally unique identifier, which identifies the resource
Request
PUT /api/v1/requests/{request_id}/document_case/{id} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 412
application/json
HTTP/1.1 412
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Retrieve Request Document Case
GET /api/v1/requests/{request_id}/document_case HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| request_id | String(format:ulid)! | Path Desc. request_id |
Path Desc. request_id
Request ID Another format for UUID, used primarily for tasks, requests and messages.
Request
GET /api/v1/requests/{request_id}/document_case HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 412
application/json
HTTP/1.1 412
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Detach Request Document Case
DELETE /api/v1/requests/{request_id}/document_case HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| request_id | String(format:ulid)! | Path Desc. request_id |
Path Desc. request_id
Request ID Another format for UUID, used primarily for tasks, requests and messages.
Request
DELETE /api/v1/requests/{request_id}/document_case HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 665
{
"associations": {
"account": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"author": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
},
"reviewer": {
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48"
}
},
"data": {
"expires_at": "2021-08-13T04:08:44.762841Z",
"id": "c6be45e4-b7dd-412c-96c4-777e83fb9c48",
"inserted_at": "2021-08-13T04:08:44.762841Z",
"last_reviewed_at": "2021-08-13T04:08:44.762841Z",
"name": "string",
"notes": "string",
"review_description": "string",
"review_status": "NONE",
"updated_at": "2021-08-13T04:08:44.762841Z"
},
"type": "request_document_case"
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}
Response 404
application/json
HTTP/1.1 404
Content-Type: application/json
Content-Length: 314
{
"errors": [
{
"code": "not_found",
"detail": "The specified resource could not be found",
"params": {
"resource": {
"id": "3fbb573a-6049-44a0-a12c-d3a1ffae0b69",
"type": "user"
}
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 412
application/json
HTTP/1.1 412
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}
Response 422
application/json
HTTP/1.1 422
Content-Type: application/json
Content-Length: 241
{
"errors": [
{
"code": "invalid_parameter",
"detail": "The specified resource could not be found",
"source": {
"pointer": "/data/type"
},
"sub_code": "none",
"title": "Not Found"
}
]
}