FansquareAPI reference
Open the app

Rotations

Delete a rotation

DELETE/v1/rotations/{rotation_id}

Deletes a rotation and its planned sends that have not gone out. Posts already published stay online with their planned removal. Confirm with the user first.

Required scopewrite:publications
Rate limit30 requests per minute
curl -X DELETE 'https://api.fansquare.so/v1/rotations/e8cff80c-0097-432c-a65c-9f83fdd1bb31' \
  -H "Authorization: Bearer $API_KEY" \
  -H "Fansquare-Version: Amethyste"
{
  "type": "https://developers.offmy.co/errors/validation_failed",
  "title": "Validation failed",
  "status": 400,
  "detail": "limit: Number must be less than or equal to 200",
  "instance": "/v1/rotations/12345",
  "errors": [
    {
      "keyword": "invalid_string",
      "instancePath": "/rotation_id",
      "schemaPath": "#/rotation_id/invalid_string",
      "params": {
        "issue": {
          "code": "invalid_string",
          "validation": "uuid",
          "path": [
            "rotation_id"
          ],
          "message": "Invalid uuid"
        }
      },
      "message": "Invalid uuid",
      "path": "rotation_id"
    }
  ]
}

Parameters

Headers

  • Fansquare-Versionstringrequired

    API version to pin. Accepts the mineral name or the release date of a version.

Path

  • rotation_idstringrequired

    Fansquare rotation id (the id field of rotation items).

    format uuid

Response

No content

No response body

curl -X DELETE 'https://api.fansquare.so/v1/rotations/e8cff80c-0097-432c-a65c-9f83fdd1bb31' \
  -H "Authorization: Bearer $API_KEY" \
  -H "Fansquare-Version: Amethyste"
{
  "type": "https://developers.offmy.co/errors/validation_failed",
  "title": "Validation failed",
  "status": 400,
  "detail": "limit: Number must be less than or equal to 200",
  "instance": "/v1/rotations/12345",
  "errors": [
    {
      "keyword": "invalid_string",
      "instancePath": "/rotation_id",
      "schemaPath": "#/rotation_id/invalid_string",
      "params": {
        "issue": {
          "code": "invalid_string",
          "validation": "uuid",
          "path": [
            "rotation_id"
          ],
          "message": "Invalid uuid"
        }
      },
      "message": "Invalid uuid",
      "path": "rotation_id"
    }
  ]
}