{"section":"known-issues","requestedLocale":"en","requestedSlug":"attachents-api-doesnt-allow-null-domainvalues-and-it-should","locale":"en","slug":"attachents-api-doesnt-allow-null-domainvalues-and-it-should","path":"docs/en/known-issues/Catalog/attachents-api-doesnt-allow-null-domainvalues-and-it-should.md","branch":"main","content":"## Summary\n\n\nThe update requests for the /api/catalog/pvt/attachment/ API isn't allowing updates for the domain Value field as a null value.\n\nThis field is nullable, so this API response is incorrectly responding with:\n\n`{`\n`  \"Message\": \"DomainValues in Domain at position 1 can not be null or empty value\"`\n`}`\n\n\n##\n\n## Simulation\n\n\n1 - Create an attachment via UI or API: https://help.vtex.com/pt/tutorial/cadastrar-um-anexo--7zHMUpuoQE4cAskqEUWScU\n\n2 - try updating it sending the domainValue field as a null, for example:\n\n`{`\n`  \"Id\": 123,`\n`  \"Name\": \"payload with null domain\",`\n`  \"IsRequired\": true,`\n`  \"IsActive\": true,`\n`  \"Domains\": [`\n`      {`\n`          \"FieldName\": \"Basic test\",`\n`          \"MaxCaracters\": \"354534\",`\n`          \"DomainValues\": \"\"`\n`      }`\n`  ]`\n`}`\n\n3 - a \"Bad request\" response type will be shown to you, when it actually should accept null values for this field.\n\n\n##\n\n## Workaround\n\n\nUpdate the permitted values manually, via UI or create them already null (the POST method is working, the PUT isn't)."}