FansquareAPI reference
Open the app

Script sequences

Delete a script sequence

DELETE/v1/script-sequences/{sequence_id}

Deletes a sequence and the progress of its fans, for good. Its scripts are kept. Confirm with the user first.

Required scopewrite:scripts
Rate limit30 requests per minute
curl -X DELETE 'https://api.fansquare.so/v1/script-sequences/e799e6a3-b43b-4466-a455-eb224a8f9bf1' \
  -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/script-sequences/12345",
  "errors": [
    {
      "keyword": "invalid_string",
      "instancePath": "/sequence_id",
      "schemaPath": "#/sequence_id/invalid_string",
      "params": {
        "issue": {
          "code": "invalid_string",
          "validation": "uuid",
          "path": [
            "sequence_id"
          ],
          "message": "Invalid uuid"
        }
      },
      "message": "Invalid uuid",
      "path": "sequence_id"
    }
  ]
}

Parameters

Headers

  • Fansquare-Versionstringrequired

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

Path

  • sequence_idstringrequired

    Fansquare script sequence id (the id field of sequence items).

    format uuid

Response

No content

No response body

curl -X DELETE 'https://api.fansquare.so/v1/script-sequences/e799e6a3-b43b-4466-a455-eb224a8f9bf1' \
  -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/script-sequences/12345",
  "errors": [
    {
      "keyword": "invalid_string",
      "instancePath": "/sequence_id",
      "schemaPath": "#/sequence_id/invalid_string",
      "params": {
        "issue": {
          "code": "invalid_string",
          "validation": "uuid",
          "path": [
            "sequence_id"
          ],
          "message": "Invalid uuid"
        }
      },
      "message": "Invalid uuid",
      "path": "sequence_id"
    }
  ]
}