Error POST/PATCH /pki/issuer/ manual_chain

Hello everyone, how to fix the chain of certificates?
I imported the root bundle with ca, ca_key.
In the pki_int mount, I imported the keys/import key and its intermediate certificate, to intermediate/set-signed.
Then I tried to change ca_chain - /pki_int/issuer/ - I tried two different methods, different orders, Both the patch and the post return an error: “1 error occurred:\n\t* unable to find PKI issuer for reference”
{
“manual_chain”: [“-----BEGIN CERTIFICATE-----\n-----ENDCERTIFICATE-----”,“-----BEGIN CERTIFICATE-----\n– —ENDCERTIFICATE-----”]
}
{
“manual_chain”: “-----BEGIN CERTIFICATE-----\n-----ENDCERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n---- -ENDCERTIFICATE-----”
}
Even if I insert the same certificate that is there right now, I will get the same error.
How to fix this behaviour?