POST API integration is not working

Hello, I am new to ignition.
I am trying to integrate the POST API but it is not working. This API is working fine in POSTMAN.
I want to pass the header values for authentication, but it was passing it as parameter. I don't want to pass it as parameter. I want to pass the header values.
Code:

def test_1():
    url = " ************************** "
    postParams = {
            "ORGANIZATION_CODE": "**"
        }
        
    header_Values = {
        'client_id': '*******',
        'client_secret': '*******'
        }
        
    page = system.net.httpPost(url, postData= postParams, headerValues=header_Values )
    print page

Error :
IOError: Server returned HTTP response code: 500 for URL

Thank you in advance.

Try setting the content type as JSON and encoding the params in json

    url = "**************************"
    postParams = {
        "ORGANIZATION_CODE": "**"
    }
    
    postParamsEnc = system.util.jsonEncode(postParams)
    
    header_Values = {
        'client_id': '*******',
        'client_secret': '*******',
        'Content-Type': 'application/json'  
    }
    
    page = system.net.httpPost(url, postData= postParamsEnc, headerValues=header_Values )
    print (page)

Use system.net.httpClient, not httpPost.