- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 05:30 AM
Hi @yash_verma,
what is the API you are calling?
The error you're encountering, "INVALID_PARAMETER_VALUE: Permission type not defined," suggests that there is an issue with the JSON payload you are using to set permissions for the job via the API. Specifically, it seems that the API is expecting a defined permission type, but it is not finding one in your request.
Add the Permission Type: Modify your JSON payload to include the "permission_type" field. Here is an example of how you might structure it:
{
"access_control_list": [
{
"user_name": "no_email@gmail.com",
"display_name": "no_email",
"all_permissions": [
{
"permission_level": "CAN_MANAGE",
"inherited": false,
"permission_type": "user" // Add this line
}
]
}
]
}