Pull Request Templates
Configures a group level pull request template that will be used on any org or project within that group
Required permissions
Edit Group settings (group.settings.edit)
Authorizations
Path parameters
group_idstring · uuidRequiredExample:
Snyk Group ID
7626925e-4b0f-11ee-be56-0242ac120002
Query parameters
versionstringRequiredExample:
Requested API version
2021-06-04
Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Body
Responses
201
Pull Request Template created for group.
application/vnd.api+json
400
Bad Request: A parameter provided as a part of the request was invalid.
application/vnd.api+json
401
Unauthorized: the request requires an authentication token.
application/vnd.api+json
403
Forbidden: the request requires an authentication token with more or different permissions.
application/vnd.api+json
404
Not Found: The resource being operated on could not be found.
application/vnd.api+json
500
Internal Server Error: An error was encountered while attempting to process the request.
application/vnd.api+json
post
Get your groups pull request template
Required permissions
View Group settings (group.settings.read)
Authorizations
Path parameters
group_idstring · uuidRequiredExample:
Snyk Group ID
7626925e-4b0f-11ee-be56-0242ac120002
Query parameters
versionstringRequiredExample:
Requested API version
2021-06-04
Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
starting_afterstringOptionalExample:
Return the page of results immediately after this cursor
v1.eyJpZCI6IjEwMDAifQo=
ending_beforestringOptionalExample:
Return the page of results immediately before this cursor
v1.eyJpZCI6IjExMDAifQo=
limitinteger · int32 · min: 10 · max: 100OptionalDefault:
Number of results to return per page
10
Example: 10
Responses
200
Fetch Pull Request Template for group.
application/vnd.api+json
400
Bad Request: A parameter provided as a part of the request was invalid.
application/vnd.api+json
401
Unauthorized: the request requires an authentication token.
application/vnd.api+json
403
Forbidden: the request requires an authentication token with more or different permissions.
application/vnd.api+json
404
Not Found: The resource being operated on could not be found.
application/vnd.api+json
500
Internal Server Error: An error was encountered while attempting to process the request.
application/vnd.api+json
get
Delete your groups pull request template. This means Snyk pull requests will start to use the default template for this group.
Required permissions
Edit Group settings (group.settings.edit)
Authorizations
Path parameters
group_idstring · uuidRequiredExample:
Snyk Group ID
7626925e-4b0f-11ee-be56-0242ac120002
Query parameters
versionstringRequiredExample:
Requested API version
2021-06-04
Pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Responses
204
The operation completed successfully with no content
400
Bad Request: A parameter provided as a part of the request was invalid.
application/vnd.api+json
401
Unauthorized: the request requires an authentication token.
application/vnd.api+json
403
Forbidden: the request requires an authentication token with more or different permissions.
application/vnd.api+json
404
Not Found: The resource being operated on could not be found.
application/vnd.api+json
500
Internal Server Error: An error was encountered while attempting to process the request.
application/vnd.api+json
delete
No content
Last updated
Was this helpful?