PATCH
https://api.oneofnone.io
/
v1
/
activities
/
{activityId}
curl --request PATCH \
  --url https://api.oneofnone.io/v1/activities/{activityId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "title": "<string>",
  "caption": "<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.

Path Parameters

activityId
integer
required

The ID of the activity to update.

Required range: x >= 1

Body

application/json

Response

200
application/json

Activity updated successfully.

The response is of type object.