Hi, we're trying to create a relationship using th...
# ory-network
w
Hi, we're trying to create a relationship using the following:
Copy code
const { data } = await RelationshipAPI.createRelationship({
        createRelationshipBody: {
          namespace: body.role,
          object: 'all',
          relation: 'access',
          subject_id: id,
        },
      });
We're using an ORY PAT token and the URL listed under SDK Configuration. However, we're getting a 404 (Error: Request failed with status code 404)? Any ideas why?
1
Our env was malforming the project ID. All fixed.
👍 3