Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I haven't tried the specific API but this point seems worth to check " The agentAttributesAdded parameter is update only, and cannot be used in conjunction with the agentAttributes parameter."