{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Update Resource",
  "description": "Update a resource's name or payload. Provisioned resources can only have their name updated. Imported resources can also update their payload.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "title": "Resource Name",
      "description": "A new human-readable name for this resource",
      "minLength": 1,
      "examples": ["Production AWS Credentials"]
    },
    "payload": {
      "type": "object",
      "title": "Payload",
      "description": "Updated resource data. Only applicable to imported resources.",
      "x-gql-type": "map"
    }
  }
}
