{"componentChunkName":"component---src-templates-api-page-tsx","path":"/api/projects/update-a-service-hook/","result":{"data":{"openApi":{"id":"38add050-be2f-5ea0-a0b2-bd0189431d8b","path":{"description":"Update a service hook.","method":"put","operationId":"Update a Service Hook","summary":null,"tags":["Projects"],"apiPath":"/api/0/projects/{organization_slug}/{project_slug}/hooks/{hook_id}/","readableUrl":"/api/projects/update-a-service-hook/","parameters":[{"schema":{"type":"string","format":null,"enum":null},"name":"organization_slug","in":"path","description":"The slug of the organization the client keys belong to.","required":true},{"schema":{"type":"string","format":null,"enum":null},"name":"project_slug","in":"path","description":"The slug of the project the client keys belong to.","required":true},{"schema":{"type":"string","format":null,"enum":null},"name":"hook_id","in":"path","description":"The GUID of the service hook.","required":true}],"responses":[{"content":{"content_type":"application/json","example":"{\n  \"dateCreated\": \"2018-11-06T21:20:08.143Z\",\n  \"events\": [\n    \"event.alert\",\n    \"event.created\"\n  ],\n  \"id\": \"4f9d73e63b7144ecb8944c41620a090b\",\n  \"secret\": \"8fcac28aaa4c4f5fa572b61d40a8e084364db25fd37449c299e5a41c0504cbc2\",\n  \"status\": \"active\",\n  \"url\": \"https://example.com/sentry-hook\"\n}","schema":"{\n  \"type\": \"object\",\n  \"required\": [\n    \"dateCreated\",\n    \"events\",\n    \"id\",\n    \"secret\",\n    \"status\",\n    \"url\"\n  ],\n  \"properties\": {\n    \"dateCreated\": {\n      \"type\": \"string\"\n    },\n    \"events\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"id\": {\n      \"type\": \"string\"\n    },\n    \"secret\": {\n      \"type\": \"string\"\n    },\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"url\": {\n      \"type\": \"string\"\n    }\n  }\n}"},"description":"Success","status_code":"200"},{"content":null,"description":"Bad Input","status_code":"400"},{"content":null,"description":"Forbidden","status_code":"403"},{"content":null,"description":"The requested resource does not exist","status_code":"404"}],"requestBody":{"content":{"content_type":"application/json","schema":"{\n  \"required\": [\n    \"url\",\n    \"events\"\n  ],\n  \"type\": \"object\",\n  \"properties\": {\n    \"url\": {\n      \"type\": \"string\",\n      \"description\": \"The URL for the webhook.\",\n      \"example\": \"https://example.com/sentry-hook\"\n    },\n    \"events\": {\n      \"type\": \"array\",\n      \"description\": \"The events to subscribe to.\",\n      \"example\": [\n        \"event.alert\",\n        \"event.created\"\n      ],\n      \"items\": {\n        \"type\": \"string\"\n      }\n    }\n  }\n}"},"required":false},"security":[{"auth_token":["project:write"]}]}}},"pageContext":{"id":"38add050-be2f-5ea0-a0b2-bd0189431d8b","title":"Update a Service Hook"}},"staticQueryHashes":["1218203755","1222113826","1222113826","1766336459","2158593473","3990806462","4015007367","4192517163"]}