Role application archive file (attachment)
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
File download
Request
Name | Type | Description |
---|---|---|
|
|
Issuance Type. Default
|
GET /rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c/attachment HTTP/1.1
Uploading a new file
Performs a file replacement.
A single file is uploaded either with Content-Type: multipart/formdata
,
or with an arbitrary Content-Type
that is not multipart.
If the download is done with Content-Type: multipart/formdata
,
then only the first file will be saved (the first part with the filename field in the header)
Content-Disposition
), and the file name itself will be ignored.
Request
PUT /rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c/attachment HTTP/1.1
Content-Type: application/octet-stream
BINARY BODY OF 'app.zip'
PUT /rest/v1/domain/roleapps/68f99ca9-016c-d352-e02f-50e54938780c/attachment HTTP/1.1
Content-Type: multipart/form-data; boundary=-----------boundary_69df8120352a996e
-----------boundary_69df8120352a996e
Content-Type: application/octet-stream
Content-Disposition: form-data; name="abcde"; filename="app.zip"
Content-Transfer-Encoding: binary
BINARY BODY OF 'app.zip'
-----------boundary_69df8120352a996e--
Deleting a file
Getting meta-information about a file
Returns meta-information about the file, including the size in the header Content-Length
.
Features
-
HTTP-the response does not contain a body, despite the presence of a header
Content-Length
.