Skip to main content
POST
/
v1
/
activities
Create an activity
curl --request POST \
  --url https://api.oneofnone.io/v1/activities \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "token_id": 123,
  "collection_slug": "<string>",
  "collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "title": "<string>",
  "content": "<string>",
  "location": "<string>",
  "owner_email": "jsmith@example.com",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": 123,
  "type": "<string>",
  "created_at": "<string>",
  "title": "<string>",
  "content": "<string>",
  "location": "<string>",
  "token_id": 123,
  "user_id": "<string>",
  "image": {
    "url": "<string>"
  },
  "video": {
    "url": "<string>",
    "poster_url": "<string>"
  },
  "gallery": [
    {
      "url": "<string>",
      "file_type": "<string>",
      "poster_url": "<string>",
      "order": 123
    }
  ],
  "updated_at": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
token_id
integer
required
collection_slug
string
collection_id
string<uuid>
title
string
Maximum string length: 100
content
string
Maximum string length: 500
location
string
Maximum string length: 100
owner_email
string<email>
user_id
string<uuid>

Response

201 - application/json

Created activity

id
number
required
type
string
required
created_at
string
required
title
string | null
content
string | null
location
string | null
token_id
number | null
user_id
string | null
image
object
video
object
updated_at
string | null