{"type":"api","title":"Update API Key","meta":{"id":"/apps/pubhub/media/legacy-umbrella-api/bf58de618cbb72dda8f39b0414ce94c0a15cd467/749b3a73-c1a2-3c03-8a59-0be6ab11a602","swagger":"2.0","info":{"title":"Service Providers","version":"1.0.0","description":"Service Providers and Managed Service Providers (MSPs)","contact":{"name":"Cloud Security Developer Community"}},"host":"management.api.umbrella.com","basePath":"/v1","schemes":["https"],"securityDefinitions":{"http":{"type":"basic"}},"security":[{"http":[]}],"x-parser-conf":{"httpBasic":{"username":"","password":""},"overview":{"markdownPath":"legacy/management/service-providers-overview.md"},"meta":{"useProxy":true}}},"spec":{"tags":["Service Providers"],"description":"Update the API key for the customer","summary":"Update API key for Customer","operationId":"updateAPIKey","parameters":[{"name":"serviceProviderId","type":"integer","description":"The ID of the service provider","in":"path","required":true,"$$ref":"#/parameters/serviceProviderIdParam"},{"name":"customerId","type":"integer","description":"The customer ID","in":"path","required":true,"$$ref":"#/parameters/customerIdParam"},{"name":"keyId","type":"string","description":"The API key ID","in":"path","required":true,"$$ref":"#/parameters/keyIdParam"}],"responses":{"200":{"description":"Update the API key and secret for the customer","schema":{"type":"object","properties":{"keyName":{"type":"string","description":"The name of the service that the key can authorize."},"keyId":{"type":"string","description":"The API key ID."},"customerId":{"type":"string","description":"The customer ID of the user that owns the key."},"key":{"type":"string","description":"The API key."},"secret":{"type":"string","description":"The secret for the API key."},"createdAt":{"type":"string","format":"date-time","description":"The time when the key was created. Specified as an ISO 8601 timestamp."},"updatedAt":{"type":"string","format":"date-time","description":"The time when the key was updated. Specified as an ISO 8601 timestamp."}},"required":["keyName","keyId","customerId","key","secret","createdAt","updatedAt"],"example":{"keyName":"key-service","keyId":"12344jkajkdjsf","customerId":"123455zasj","key":"123254345346a","secret":"123324j2k34jk234","createdAt":"2022-06-13T16:07:07.222Z","updatedAt":"2022-06-13T16:07:07.222Z"},"$$ref":"#/definitions/KeySecretResponse"}},"400":{"description":"Bad Request","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":400,"description":"the http error code returned"},"error":{"type":"string","example":"Validation Error","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"},"validationErrors":{"type":"object","properties":{"someProperty":{"type":"string","example":"must not be empty","description":"the name of the property failing validation."}}}}},"$$ref":"#/responses/BadRequest"},"401":{"description":"Unauthorized","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":401,"description":"The authorization header is missing or the token is unauthorized"},"error":{"type":"string","example":"Unauthorized","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/Unauthorized"},"403":{"description":"Forbidden","schema":{"type":"object","minProperties":1,"required":["message"],"properties":{"statusCode":{"type":"integer","example":403,"description":"the http error code returned"},"error":{"type":"string","example":"Forbidden, Invalid authentication credentials","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/Forbidden"},"404":{"description":"Not Found","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":404,"description":"the http error code returned"},"error":{"type":"string","example":"Not Found","description":"A resource that is specified in the URL was not found."},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/NotFound"},"500":{"description":"Internal Server Error","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":500,"description":"the http error code returned"},"error":{"type":"string","example":"Internal Server Error","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/ServerError"}},"__originalOperationId":"updateAPIKey","consumes":["application/json"],"produces":["application/json"],"security":[{"http":[]}],"method":"put","path":"/serviceproviders/{serviceProviderId}/customers/{customerId}/apikeys/{keyId}"}}