POST
/
v1
/
activities
curl --request POST \
  --url https://api.oneofnone.io/v1/activities \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form 'product_id=<string>' \
  --form 'title=<string>' \
  --form 'content=<string>' \
  --form 'owner_address=<string>'
{
  "content": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "id": 123,
  "image_id": 123,
  "json": {},
  "owner_address": "<string>",
  "title": "<string>",
  "tx_url": "<string>",
  "type": "PRODUCTION",
  "updated_at": "2023-11-07T05:31:56Z",
  "video_id": 123,
  "gallery": [
    {
      "alt": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "file_type": "<string>",
      "id": 123,
      "poster_url": "<string>",
      "size": 123,
      "tags": [
        "<string>"
      ],
      "thumbnail_url": "<string>",
      "updated_at": "2023-11-07T05:31:56Z",
      "url": "<string>",
      "order": 123,
      "variants": [
        "<string>"
      ],
      "type": "<string>"
    }
  ],
  "image": {
    "alt": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "file_type": "<string>",
    "id": 123,
    "poster_url": "<string>",
    "size": 123,
    "tags": [
      "<string>"
    ],
    "thumbnail_url": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "url": "<string>"
  },
  "video": {
    "alt": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "file_type": "<string>",
    "id": 123,
    "poster_url": "<string>",
    "size": 123,
    "tags": [
      "<string>"
    ],
    "thumbnail_url": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "url": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

The API key required for accessing protected routes. It should be included in the request headers as x-api-key.

Body

multipart/form-data
product_id
string
required

The ID of the product associated with the activity.

title
string
required

The title of the activity.

Maximum length: 100
owner_address
string
required

The address of the activity's owner.

image
file
required
content
string | null

Content for the activity.

Maximum length: 500

Response

201
application/json
Activity created successfully.
content
string | null
created_at
string
id
integer
image_id
integer | null
json
object | null
owner_address
string | null
title
string | null
tx_url
string | null
type
enum<string>
Available options:
PRODUCTION,
CONNECTED,
CONTRACT_DEPLOYED,
PRODUCT_DROPPED,
PRODUCT_TAPPED,
PRODUCT_REGISTERED,
PRODUCT_VAULTED,
PRODUCT_GRADED,
PRODUCT_REDEEMED,
PRODUCT_LISTED,
PRODUCT_SOLD,
ON_DISPLAY,
OWNER_POST,
CREATOR_POST,
CREATOR_UPGRADE
updated_at
string | null
video_id
integer | null

The gallery items related to the activity.

image
object
video
object