Skip to main content
POST
/
community
/
{id}
/
file
Create a file upload
curl --request POST \
  --url https://api.op.xyz/v1/community/{id}/file \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "name": "<string>"
}'
{}

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Community ID

Body

application/json
name
string
required

The name of the file (must include file extension)

Response

200 - application/json

File created successfully

The response is of type object.