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

This commit is contained in:
sean-m-sullivan 2020-10-19 15:55:49 -05:00
parent a8159c0391
commit fe55dca661

View File

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