How to select one value in multicheckboxes when i create issue

Hi. I found many answer for jira server but dont work for me. I need answer for jira cloud.
Thanks so much for any answer.

this dont work:


                'fields' => [
                    'summary' => $name,
                    'issuetype' => [
                        'id' => '10085',
                    ],
                    'project' => [
                        'key' => 'BS',
                    ],
                    'customfield_10666' => [
                        'value' => 'something',
                ],
            ];


this dont work:


                'fields' => [
                    'summary' => $name,
                    'issuetype' => [
                        'id' => '10085',
                    ],
                    'project' => [
                        'key' => 'BS',
                    ],
                    'customfield_10666' => [
                        'id' => '102554',
                ],
            ];


this dont work:


                'fields' => [
                    'summary' => $name,
                    'issuetype' => [
                        'id' => '10085',
                    ],
                    'project' => [
                        'key' => 'BS',
                    ],
                    'customfield_10666' => [
                        'set' => [      //update dont work too...
                             'value' => 'something',
                        ],
                ],
            ];


and the Id is definitely ok. I found it with this:

https://blahblah.atlassian.net/rest/api/latest/issue/BS-666/editmeta

I have not tested it but if I remember correctly, you need to set an array of IDs, you are trying to set some objects with properties. Simply try to something like:

["102554"]

thank you but this dont work for me. 400 given.
But without this array the post function works fine.
I dont know where is the problem.

in issue with selected checkbox in multicheckboxes looks like this

"customfield_10300": [
            {
                "self": "https://blahblah.atlassian.net/rest/api/2/customFieldOption/10288",
                "value": "Ecofleet",
                "id": "10288"
            }
        ],

i known { is [ in php but what is [ in php?

ok you are near to right resolution:

$data = [ "item" => [ ["id" => "123456", "name" => "adam"] ] ];

thank you so much…