Examples

PATCH /api/v2/muted-items/12
{
  "data": {
    "id": "12",
    "type": "muted-items",
    "attributes": {
      "expire-at": "2017-11-29 10:51:47 +0800",
      "updated-at": "2017-08-29 10:51:47 +0800"
    },
    "relationships": {}
  }
}
200
{
  "data": {
    "id": "12",
    "type": "muted-items",
    "links": {
      "self": "http://test.host/api/v2/muted-items/12"
    },
    "attributes": {
      "expire-at": "2017-11-29T10:51:47.000+08:00",
      "updated-at": "2017-08-29T10:51:47.000+08:00"
    },
    "relationships": {
      "muted-account": {
        "links": {
          "self": "http://test.host/api/v2/muted-items/12/relationships/muted-account",
          "related": "http://test.host/api/v2/muted-items/12/muted-account"
        }
      }
    }
  }
}

Params

Param name Description
id
required

Muted Item ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.

data
required

Muted Item information

Validations:

  • Must be a Hash

data[type]
optional

Validations:

data[relationships]
optional

Validations:

  • Must be a Hash

data[relationships][muted_account]
optional

Validations:

  • Must be a Hash

data[relationships][muted_account][data]
optional

Validations:

  • Must be a Hash

data[relationships][muted_account][data][type]
optional

Muted Account type, which is `accounts`

Validations:

  • Must be a String

data[relationships][muted_account][data][id]
optional

Account ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.