Disable a public link
const url = 'https://api.voidfs.com/v1/operator/links/00000000000000000000000000000001';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"disabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.voidfs.com/v1/operator/links/00000000000000000000000000000001 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "disabled": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”16-byte public link ID in lowercase hex.
Example
0000000000000000000000000000000116-byte public link ID in lowercase hex.
Request Bodyrequired
Section titled “Request Bodyrequired”JSON body, at most 4096 bytes.
object
Example
{ "disabled": true}Responses
Section titled “Responses”The link is disabled.
object
16-byte public link ID in lowercase hex.
Example
{ "linkId": "00000000000000000000000000000001", "disabled": true}Invalid request. Conflicting credentials.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#invalid", "title": "Invalid request", "status": 400, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "invalid", "category": "invalid-input"}{ "type": "https://docs.voidfs.com/errors/#conflicting-credentials", "title": "Conflicting credentials", "status": 400, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "conflicting-credentials", "category": "invalid-input"}Credentials required.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unauthorized", "title": "Credentials required", "status": 401, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unauthorized", "category": "unauthorized"}Headers
Section titled “Headers”Not allowed.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#forbidden", "title": "Not allowed", "status": 403, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "forbidden", "category": "forbidden"}Unknown link.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unknown-link", "title": "Unknown link", "status": 404, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unknown-link", "category": "not-found"}Method not allowed.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#method-not-allowed", "title": "Method not allowed", "status": 405, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "method-not-allowed", "category": "invalid-input"}Headers
Section titled “Headers”Unsupported media type.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unsupported-media-type", "title": "Unsupported media type", "status": 415, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unsupported-media-type", "category": "invalid-input"}Rate limit exceeded.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#rate-limit", "title": "Rate limit exceeded", "status": 429, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "rate-limit", "category": "rate-limited"}Headers
Section titled “Headers”Seconds before retrying when storage is under pressure.
Unavailable.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unavailable", "title": "Unavailable", "status": 500, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unavailable", "category": "unavailable"}Unavailable.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unavailable", "title": "Unavailable", "status": 503, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unavailable", "category": "unavailable"}