Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Create column YES/NO with REST API FieldBoolean



I created a list with REST API


 "Title": "TPF811000", 
 "BaseTemplate": 100,
 "Description": "Seguimiento a ",
 "OnQuickLaunch": false

The I Add the items, it works sith just the title, but I want to add the column YES/NO.

I tried this code

{ '__metadata': { 'type': 'SP.Data.TPF811000ListItem' }, 
        'Title': 'Factura',
        '__metadata': { 'type': 'SP.FieldBoolean'},
      'Name': 'Realizado',
      'Description': 'Realizado',
       'DefaultValue': No

Based in another kind of column, but with propierties of FieldBoolean, but it doesn't works, like this I get the error the property name '' cannot be empty, but I don't know what property, I add 'Name', but I guess it isn't.


I guess I just need the correction of this code, to get it right




Resolver I
Resolver I

But it seems that MS did not give instructions for creating a Yes/No column using REST API. Do you have any resources for this?

Helper II
Helper II

@RookieII don't have it, I just thinked, something I can't do it normally, I can with Rest API ... Smiley Tongue 

Because before I did it creating a list and fill it. but I don't even know how to add another column Smiley Sad

Resident Rockstar
Resident Rockstar

Hi @RookieI & @Dalyla 


Please have a look here on the method to use.


If you find my posts helpful, please mark with thumbs up


If this solves your issue, please click "Accept as Solution"


Any questions, just ask.


Thanks, Alan

Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!

Helpful resources

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (38,856)