# Create acc, org or proj webhook Endpoint: POST /code/api/v1/webhooks Version: 1.0 Security: x-api-key ## Query parameters: - `accountIdentifier` (string, required) Account Identifier for the Entity. - `orgIdentifier` (string) Organization Identifier for the Entity. - `projectIdentifier` (string) Project Identifier for the Entity. ## Request fields (application/json): - `description` (string) - `display_name` (string) - `enabled` (boolean) - `identifier` (string) - `insecure` (boolean) - `secret` (string) - `triggers` (array,null) Enum: "artifact_created", "artifact_deleted", "branch_created", "branch_deleted", "branch_updated", "pullreq_branch_updated", "pullreq_closed", "pullreq_comment_created", "pullreq_comment_status_updated", "pullreq_comment_updated", "pullreq_created", "pullreq_label_assigned", "pullreq_merged", "pullreq_reopened", "pullreq_review_submitted", "pullreq_target_branch_changed", "pullreq_updated", "tag_created", "tag_deleted", "tag_updated" - `url` (string) - `uid` (string) ## Response 201 fields (application/json): - `created` (integer) - `created_by` (integer) - `description` (string) - `display_name` (string) - `enabled` (boolean) - `has_secret` (boolean) - `id` (integer) - `identifier` (string) - `insecure` (boolean) - `latest_execution_result` (string,null) Enum: "fatal_error", "retriable_error", "success" - `parent_id` (integer) - `parent_type` (string) Enum: "registry", "repo", "space" - `scope` (integer) - `triggers` (array,null) Enum: "artifact_created", "artifact_deleted", "branch_created", "branch_deleted", "branch_updated", "pullreq_branch_updated", "pullreq_closed", "pullreq_comment_created", "pullreq_comment_status_updated", "pullreq_comment_updated", "pullreq_created", "pullreq_label_assigned", "pullreq_merged", "pullreq_reopened", "pullreq_review_submitted", "pullreq_target_branch_changed", "pullreq_updated", "tag_created", "tag_deleted", "tag_updated" - `updated` (integer) - `url` (string) - `version` (integer) ## Response 400 fields (application/json): - `message` (string) - `values` (object) ## Response 401 fields (application/json): - `message` (string) - `values` (object) ## Response 403 fields (application/json): - `message` (string) - `values` (object) ## Response 500 fields (application/json): - `message` (string) - `values` (object)