v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-133566112.5 KB
projects

Creates a new hook in a given repository.

post/v1/{+parent}/hooks

Path parameters

parentstring required

Required. The repository in which to create the hook. Values are of the form projects/{project_number}/locations/{location_id}/repositories/{repository_id}

Query parameters

hookIdstring

Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

Request body

createTimestring google-datetime

Output only. Create timestamp.

targetUristring

Required. The target URI to which the payloads will be delivered.

uidstring

Output only. Unique identifier of the hook.

sensitiveQueryStringstring

Optional. The sensitive query string to be appended to the target URI.

eventsstring[]

Optional. The events that trigger hook on.

disabledboolean

Optional. Determines if the hook disabled or not. Set to true to stop sending traffic.

namestring

Identifier. A unique identifier for a Hook. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}

updateTimestring google-datetime

Output only. Update timestamp.

Response

Successful response