{"type":"api","title":"Update orbital feature","meta":{"id":"/apps/pubhub/media/orbital-api/0f9d1971933e16c865f41467ae3e87d1e066a5ad/6031b5a0-67fa-3480-bf75-857e24b55963","info":{"description":"Documentation of the Orbital API\n\nTo authenticate:\n\n\nFollow steps 1 through 3 from the SecureX Authorization section of this article to generate a SecureX Token.\nhttps://developer.cisco.com/docs/secure-endpoint/#!authentication\n\n\nclick \"Authorize\" button\nIn \"Value\" - enter token from above, prefixed with \"Bearer \" (no quotes)\nClick \"Authorize\", followed by \"Close\"\n\nNow the \"Try it out\" button can work","title":"Orbital API","version":"0.0.1"},"security":[{"AuthorizationHeader":[]}],"openapi":"3.0.3","servers":[{"description":"North America","url":"https://enterprise.orbital.amp.cisco.com/v0"},{"description":"Asia, Pacific, Japan, and China","url":"https://apjc.orbital.amp.cisco.com/v0"},{"description":"Europe","url":"https://eu.orbital.amp.cisco.com/v0"}],"securitySchemes":{"AuthorizationHeader":{"description":"Ex: Bearer \\\u003ctoken\\\u003e","in":"header","name":"authorization","type":"apiKey"}}},"spec":{"description":"For the 'script' feature:\nOnly admin users can enable or disable the script feature\nRequest body requires only the 'enabled' field\nWhen disabling the script feature, all existing scheduled scripts for the organization will be disabled\nNote : Response for script feature will contain only: id, creator, organization, and enabled attributes.\n\nFor other features\nOnly AMP applications can make this call\nRequest body requires both 'entitled' and 'enabled' fields","operationId":"idOfFeatureUpdate","parameters":[{"description":"ID of orbital feature","in":"path","name":"featureid","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"enabled":{"type":"boolean"},"entitled":{"type":"boolean"}},"type":"object","$$ref":"#/components/schemas/FeatureInput"}}},"x-originalParamName":"Input"},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"created":{"description":"Created is when the feature was created.","format":"date-time","type":"string"},"creator":{"description":"Creator is the user that made the feature.","type":"string"},"disabled":{"description":"Disabled is whether or not this feature id has been soft deleted.","type":"boolean"},"enabled":{"description":"Enabled is true if the customer has requested that the feature is enabled.","type":"boolean"},"entitled":{"description":"Entitled is true if the customer is entitled to the feature (meaning they are paying for it).","type":"boolean"},"id":{"description":"ID is a unique string that identifies the feature.","type":"string"},"name":{"description":"Name is a human readable name for the feature.","type":"string"},"organization":{"description":"Organization is the organization that made the feature.","type":"string"},"updated":{"format":"date-time","type":"string"},"url":{"description":"URL is a link to the external UI for managing this feature.","type":"string"}},"type":"object","$$ref":"#/components/schemas/Feature"}}},"description":"Feature Update Response\nNote : Response for script feature will contain only: id, creator, organization, and enabled attributes.","$$ref":"#/components/responses/FeatureUpdateResponse"},"400":{"content":{"application/json":{"schema":{"properties":{"errors":{"example":["can not resolve feature id=123"],"items":{"type":"string"},"type":"array"}},"type":"object","$$ref":"#/components/schemas/ErrorMsg404FeatureFetch"}}},"description":"Feature Update Error 400 POST Response","$$ref":"#/components/responses/ErrorMsg400FeatureUpdate"},"401":{"content":{"application/json":{"schema":{"properties":{"errors":{"example":["authentication required"],"items":{"type":"string"},"type":"array"}},"type":"object","$$ref":"#/components/schemas/ErrorMsg401MissingToken"}}},"description":"Script Error 401 Response","$$ref":"#/components/responses/ErrorMsg401"},"403":{"content":{"application/json":{"schema":{"properties":{"errors":{"example":["only admins can enable or disable the script feature"],"items":{"type":"string"},"type":"array"}},"type":"object","$$ref":"#/components/schemas/ErrorMsg403FeatureUpdate"}}},"description":"Feature Update Error 403 POST Response","$$ref":"#/components/responses/ErrorMsg403FeatureUpdate"},"500":{"content":{"application/json":{"schema":{"properties":{"errors":{"example":["internal error"],"items":{"type":"string"},"type":"array"}},"type":"object","$$ref":"#/components/schemas/ErrorMsg500FeatureUpdate"}}},"description":"Feature Update Error 500 POST Response","$$ref":"#/components/responses/ErrorMsg500FeatureUpdate"}},"security":[{"AuthorizationHeader":[]}],"summary":"Update orbital feature","tags":["Misc"],"__originalOperationId":"idOfFeatureUpdate","method":"post","path":"/features/{featureid}"}}