# Retract an interview boundary

Source: https://musicnerd-docs.vercel.app/api-reference/interview/retract-boundary

Retract an interview boundary

## POST /api/artist/{id}/interview/boundaries/{boundaryId}/retract

Full OpenAPI specification: https://musicnerd-docs.vercel.app/spec/interview-memory.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://musicnerd-docs.vercel.app/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Mandatory interview memory",
    "version": "0.1.0",
    "description": "Planned third delivery slice; not released. Schema and API implementation are required before Web consumption."
  },
  "servers": [
    {
      "url": "https://musicnerd-api.vercel.app"
    }
  ],
  "paths": {
    "/api/artist/{id}/interview/boundaries/{boundaryId}/retract": {
      "post": {
        "summary": "Retract an interview boundary",
        "description": "Retract an exact current boundary revision under claimant/admin authority, with immutable wording and attribution. Repeat retraction is idempotent.",
        "security": [
          {
            "PrivyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "boundaryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoundaryResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Current claimant/admin required for private operations",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Artist or offered question unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "State or revision changed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Mandatory memory or active boundary limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Memory storage or authentication service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "revision"
                ],
                "properties": {
                  "revision": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BoundaryResult": {
        "type": "object",
        "required": [
          "status",
          "boundary"
        ],
        "properties": {
          "status": {
            "const": "ok"
          },
          "boundary": {
            "$ref": "#/components/schemas/Boundary"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error",
          "code"
        ],
        "properties": {
          "status": {
            "const": "error"
          },
          "error": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "Boundary": {
        "type": "object",
        "required": [
          "id",
          "revision",
          "wording",
          "scope",
          "sitting",
          "questionKey",
          "question",
          "createdAt",
          "retractedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "revision": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "wording": {
            "type": "string",
            "maxLength": 4000
          },
          "scope": {
            "enum": [
              "sitting",
              "until_retracted"
            ]
          },
          "sitting": {
            "type": "integer",
            "minimum": 1
          },
          "questionKey": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "retractedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "question": {
            "type": "string",
            "description": "Exact offered question captured when this instruction was saved."
          }
        }
      }
    },
    "securitySchemes": {
      "PrivyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Current artist claimant or administrator Privy access token."
      }
    }
  }
}
```
