Files
ch:files
LINK RELATION
,
EMBEDDED RELATION
Actions
method | description |
---|---|
GET | View files collection |
POST | Create new file |
OPTIONS | Retrieve supported HTTP methods |
Request parameters
property | type | required | method |
---|---|---|---|
label123 | string | true | POST |
content_type | string | true | POST |
name4 | string | false | POST |
size | integer | false | POST |
page5 | integer | false | GET |
per_page5 | integer | false | GET |
1
2
3
If adding a file for a Website, must be
ownership
.
4
Same as
label
, if unspecified.
5
See Pagination for details.
Profile
The Files resource represents a collection of File resources.
Properties
name | type | read-only |
---|---|---|
count | integer | true |
page | integer | true |
per_page | integer | true |
Link relations
rel | conditional |
---|---|
self | false |
first | true |
last | true |
prev | true |
next | true |
ch:application1 | true |
ch:person1 | true |
ch:dispute1 | true |
ch:company1 | true |
ch:website1 | true |
1
Presence depends on file ownership context.
Embedded
Additional semantics
This collection is paginated. See Pagination.
Example representation
{
"count": 1,
"page": 1,
"per_page": 20,
"_links": {
"self": {
"href": "https://merchant.test.clearhaus.com/applications/3128a7e4-9594-42fb-a9bd-4f444b58110f/files"
},
"ch:application": {
"href": "https://merchant.test.clearhaus.com/applications/3128a7e4-9594-42fb-a9bd-4f444b58110f"
},
"curies": [
{
"href": "https://developer.clearhaus.com/rels/{rel}",
"templated": true,
"name": "ch"
}
]
},
"_embedded": {
"ch:files": [...]
}
}