| ... | @@ -34,7 +34,7 @@ The attribute's permissions are handled as usual - if it's available in a transi |
... | @@ -34,7 +34,7 @@ The attribute's permissions are handled as usual - if it's available in a transi |
|
|
|
|
|
|
|
To set (upload) a file, it needs to be packed into the json request of any transition which includes it.
|
|
To set (upload) a file, it needs to be packed into the json request of any transition which includes it.
|
|
|
|
|
|
|
|
The attribute must be set to the original file name and the base64 encoded file data, seperated by a semi-colon:
|
|
The attribute must be set to the original file name and the base64 encoded file data, seperated by a semi-colon. In the following example "attachment" is the name of the attribute and a file called "test.txt" is being uploaded:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
#/data/helpdesk/ticket/transitions/create
|
|
#/data/helpdesk/ticket/transitions/create
|
| ... | @@ -73,6 +73,6 @@ As stated in the universe, the file itself can be downloaded via a seperate url: |
... | @@ -73,6 +73,6 @@ As stated in the universe, the file itself can be downloaded via a seperate url: |
|
|
|
|
|
|
|
"3" being the ID of the instance, "attachment" the name of the attribute the file is stored in:
|
|
"3" being the ID of the instance, "attachment" the name of the attribute the file is stored in:
|
|
|
|
|
|
|
|
GET /data/helpdesk/ticket/3/download/attachment
|
|
`GET /data/helpdesk/ticket/3/download/attachment`
|
|
|
|
|
|
|
|
Permission to do so will be the same as a permission to view the instance. |
|
Permission to do so will be the same as a permission to view the instance. |
|
|
|
\ No newline at end of file |