POST
https://api.oneofnone.io
/
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

Response

201
application/json

Activity created successfully.

The response is of type object.