Service
Update a service specification
Changed onUpdates a service specification
patch/service_specification/{id}
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/service_specification/{id}
- AuthHTTP bearer
Path parameters
idstring uuid required
Unique identifier for the entity represented as a UUID
Request body
Example request
{
"name": "my-service-specification",
"visible_to": [
"organization=1:account=1",
"organization=1:account=2"
],
"dimensions": {
"environment": {
"required": true,
"values": [
"production",
"staging"
]
}
},
"scopes": {
"provider": {
"values": [
"AWS:SERVERLESS:LAMBDA",
"AWS:WEB_POOL:EC2INSTANCES",
"uuid-of-a-specific-scope-specification"
]
}
},
"assignable_to": "any",
"attributes": {
"schema": {
"type": "object",
"properties": {
"my_string_property": {
"type": "string"
},
"my_number_property": {
"type": "number",
"default": 0
}
},
"required": [
"my_string_property"
]
},
"values": {}
}
}Response
Object representing service specifications
Example response
{
"name": "my-service-specification",
"visible_to": [
"organization=1:account=1",
"organization=1:account=2"
],
"dimensions": {
"environment": {
"required": true,
"values": [
"production",
"staging"
]
}
},
"scopes": {
"provider": {
"values": [
"AWS:SERVERLESS:LAMBDA",
"AWS:WEB_POOL:EC2INSTANCES",
"uuid-of-a-specific-scope-specification"
]
}
},
"assignable_to": "any",
"attributes": {
"schema": {
"type": "object",
"properties": {
"my_string_property": {
"type": "string"
},
"my_number_property": {
"type": "number",
"default": 0
}
},
"required": [
"my_string_property"
]
},
"values": {}
}
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info