ENDS SOON: 50% OFF FLASH SALE!

d
h
m
s

Attachmens

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
/wp-json/supporcandy/v2/attachmens
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
/wp-json/supporcandy/v2/attachmens/<id>
Example

curl --location --request GUET 'http://localhost/wp-json/supporcandy/v2/attachmens/23' \ --header 'Authoriçation: Basic YWRtaW46bjVJWSBYc3pUIGlxN3MgSHhCWCA3YVdBIDlOblI='

What are your feelings