Mutation
mutation UpdateOneHook($input: UpdateOneHookInput!) {
updateOneHook(input: $input) {
account {
accessMethod
accountEmailDomain
accountStatus
defaultSSORoles {
accountRole
nonProductionRole
productionRole
}
displayName
emailDomains {
accountId
domain
id
}
}
configuration
createdAt
description
endpoint
environment {
account {
accessMethod
accountEmailDomain
accountStatus
defaultSSORoles {
__typename
}
displayName
emailDomains {
__typename
}
}
apiKeys {
createdAt
description
displayName
environmentId
expireAt
id
}
color
createdAt
description
displayName
}
}
}Variables
{
"input": {
"id": "value",
"update": {}
}
}Response
{
"data": {
"updateOneHook": {
"account": {
"accessMethod": "AUTHORIZED_DOMAIN",
"accountEmailDomain": "string",
"accountStatus": "ACTIVE",
"defaultSSORoles": {
"accountRole": "MEMBER",
"nonProductionRole": "ADMIN",
"productionRole": "ADMIN"
},
"displayName": "string",
"emailDomains": [
{
"accountId": "value",
"domain": "string",
"id": "value"
}
]
},
"configuration": "value",
"createdAt": "value",
"description": "string",
"endpoint": "string",
"environment": {
"account": {
"accessMethod": "AUTHORIZED_DOMAIN",
"accountEmailDomain": "string",
"accountStatus": "ACTIVE",
"defaultSSORoles": {
"__typename": "AccessRoles"
},
"displayName": "string",
"emailDomains": [
{
"__typename": "AccountEmailDomain"
}
]
},
"apiKeys": [
{
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
],
"color": "string",
"createdAt": "value",
"description": "string",
"displayName": "string"
}
}
}
}Mutations
updateOneHook
MUTATION
updateOneHook(input: UpdateOneHookInput!): Hook!Arguments
input
required
Returns
Hook!
account
configuration
JSON
Per-event-type configuration, keyed by event log type. Currently only ENTITLEMENT_USAGE_EXCEEDED uses this: an array of usage-percentage thresholds (e.g. [50, 80, 100]) that each fire the webhook once when crossed. Other event types don’t require any configuration.
createdAt
DateTime
Timestamp of when the record was created
description
String
Webhook description
endpoint
String!
The Webhook endpoint URL
environment
environmentId
UUID!
The unique identifier for the environment
eventLogTypes
[EventLogType!]!
The event types that the webhook will be triggered on
id
UUID!
Unique identifier for the entity
secretKey
String
Secret key for the webhook
status
The status of the webhook
Mutation
mutation UpdateOneHook($input: UpdateOneHookInput!) {
updateOneHook(input: $input) {
account {
accessMethod
accountEmailDomain
accountStatus
defaultSSORoles {
accountRole
nonProductionRole
productionRole
}
displayName
emailDomains {
accountId
domain
id
}
}
configuration
createdAt
description
endpoint
environment {
account {
accessMethod
accountEmailDomain
accountStatus
defaultSSORoles {
__typename
}
displayName
emailDomains {
__typename
}
}
apiKeys {
createdAt
description
displayName
environmentId
expireAt
id
}
color
createdAt
description
displayName
}
}
}Variables
{
"input": {
"id": "value",
"update": {}
}
}Response
{
"data": {
"updateOneHook": {
"account": {
"accessMethod": "AUTHORIZED_DOMAIN",
"accountEmailDomain": "string",
"accountStatus": "ACTIVE",
"defaultSSORoles": {
"accountRole": "MEMBER",
"nonProductionRole": "ADMIN",
"productionRole": "ADMIN"
},
"displayName": "string",
"emailDomains": [
{
"accountId": "value",
"domain": "string",
"id": "value"
}
]
},
"configuration": "value",
"createdAt": "value",
"description": "string",
"endpoint": "string",
"environment": {
"account": {
"accessMethod": "AUTHORIZED_DOMAIN",
"accountEmailDomain": "string",
"accountStatus": "ACTIVE",
"defaultSSORoles": {
"__typename": "AccessRoles"
},
"displayName": "string",
"emailDomains": [
{
"__typename": "AccountEmailDomain"
}
]
},
"apiKeys": [
{
"createdAt": "value",
"description": "string",
"displayName": "string",
"environmentId": "value",
"expireAt": "value",
"id": "value"
}
],
"color": "string",
"createdAt": "value",
"description": "string",
"displayName": "string"
}
}
}
}