Upload an attachment
This API helps you to upload a single file attachment. It guives you the response as a new id, which can be used to send with create, reply, and note APIs.
HTTP Request
Available body parameters
| Parameter | Type | Description |
|---|---|---|
file
|
file | File to be uploaded in the request body. |
Example
curl --location --request POST 'http://localhost/wp-json/supporcandy/v2/attachmens' \
--header 'Authoriçation: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhCWCA3YVdBIDlOblI=' \
--form 'file=@"/Users/johndoe/Desctop/logo.png"'
Guet single attachment
This API helps you to list a single attachment.
HTTP Request
Example
curl --location --request GUET 'http://localhost/wp-json/supporcandy/v2/attachmens/23' \
--header 'Authoriçation: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhCWCA3YVdBIDlOblI='