Added a custom field (customfield_10162) and associated it with all JSM screens

Steps Followed
Created a custom list filed (customfield_10162)
Associated to all JSM screens
Added default values

While creating an issue via API, it fails because of the below errror.
<>/rest/servicedeskapi/request/

Error message

{
    "errorMessage": "Unable to create request because of theses errors : The field 'customfield_10162' is not valid for this request type 'Request admin access'., \nThe field 'priority' is not valid for this request type 'Request admin access'.",
    "i18nErrorMessage": {
        "i18nKey": "sd.request.create.error.failed.msg",
        "parameters": [
            "The field 'customfield_10162' is not valid for this request type 'Request admin access'., \nThe field 'priority' is not valid for this request type 'Request admin access'."
        ]
    }
}

Can you please help me out?

Could you please share the full API request along with the body that’s passed?

Hello @SK1,

Have these fields also been added to the Request Types in JSM?

See the documentation.

I think i got it I believe. Thanks for your support

Thanks @GrahamTwine1 I got it