diff --git a/apiserver/plane/api/views/api_token.py b/apiserver/plane/api/views/api_token.py index 209fa2401..2508b06ac 100644 --- a/apiserver/plane/api/views/api_token.py +++ b/apiserver/plane/api/views/api_token.py @@ -24,7 +24,7 @@ class ApiTokenEndpoint(BaseAPIView): ) api_token = APIToken.objects.create( - label=label, user=request.user, workspace=workspace + label=label, user=request.user, workspace_id=workspace ) serializer = APITokenSerializer(api_token)