make workflow approval creation return an HTTP 201, not 200 OK

see: e16a910062 (diff-67c0fe4fc2a405ad611e42d1457e8aa5)
This commit is contained in:
Ryan Petrello
2020-10-19 16:04:06 -04:00
parent d7864c58c1
commit 57b2cd402b
2 changed files with 6 additions and 6 deletions

View File

@@ -3043,7 +3043,7 @@ class WorkflowJobTemplateNodeCreateApproval(RetrieveAPIView):
approval_template,
context=self.get_serializer_context()
).data
return Response(data, status=status.HTTP_200_OK)
return Response(data, status=status.HTTP_201_CREATED)
def check_permissions(self, request):
obj = self.get_object().workflow_job_template