curl --request PATCH \
--url https://api.dynamosql.com/v1/schemas/{schemaName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tableAllowlist": [
"Users",
"Orders",
"Products",
"Inventory"
]
}
'{
"success": true,
"data": {
"tenantId": "tenant-abc123",
"schemaName": "myschema",
"region": "us-east-1",
"accountId": "123456789012",
"roleArn": "arn:aws:iam::123456789012:role/DynamoSQLReadRole",
"externalId": "dsql-ext-7f3a9c2b",
"tableAllowlist": [
"Users",
"Orders",
"Products",
"Inventory"
],
"status": "active",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-03-11T14:00:00.000Z"
}
}{
"success": false,
"error": {
"message": "startDate must be before or equal to endDate"
}
}{
"success": false,
"error": {
"message": "Unauthorized"
}
}{
"success": false,
"error": {
"message": "Tenant admin access required"
}
}{
"success": false,
"error": {
"message": "Schema not found: myschema"
}
}Schemas
Update Schema
Update a schema’s connection details, table allowlist, or status.
PATCH
/
v1
/
schemas
/
{schemaName}
curl --request PATCH \
--url https://api.dynamosql.com/v1/schemas/{schemaName} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tableAllowlist": [
"Users",
"Orders",
"Products",
"Inventory"
]
}
'{
"success": true,
"data": {
"tenantId": "tenant-abc123",
"schemaName": "myschema",
"region": "us-east-1",
"accountId": "123456789012",
"roleArn": "arn:aws:iam::123456789012:role/DynamoSQLReadRole",
"externalId": "dsql-ext-7f3a9c2b",
"tableAllowlist": [
"Users",
"Orders",
"Products",
"Inventory"
],
"status": "active",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-03-11T14:00:00.000Z"
}
}{
"success": false,
"error": {
"message": "startDate must be before or equal to endDate"
}
}{
"success": false,
"error": {
"message": "Unauthorized"
}
}{
"success": false,
"error": {
"message": "Tenant admin access required"
}
}{
"success": false,
"error": {
"message": "Schema not found: myschema"
}
}Required scope:
schemas:writeAuthorizations
Body
application/json
All fields are optional; include only what you want to change. At least one field must be provided.
Response
Schema updated.